home *** CD-ROM | disk | FTP | other *** search
- on flashHotSpots
- global hotSpotList
- repeat with i = 1 to count(hotSpotList)
- set spriteNum to getAt(hotSpotList, i)
- puppetSprite(spriteNum, 1)
- set castName to string(getPropAt(hotSpotList, i)) & "_B2"
- set the castNum of sprite spriteNum to the number of cast castName
- end repeat
- updateStage()
- set startTime to the ticks
- repeat while (the ticks - startTime) < (2 * 60)
- nothing()
- end repeat
- repeat with i = 1 to count(hotSpotList)
- set spriteNum to getAt(hotSpotList, i)
- set castName to string(getPropAt(hotSpotList, i)) & "_B1"
- set the castNum of sprite spriteNum to the number of cast castName
- puppetSprite(spriteNum, 0)
- end repeat
- updateStage()
- end
-
- on setHotSpotDetect theState
- global gHotSpotDetect
- set gHotSpotDetect to theState
- end
-
- on hotSpotDetect
- global gHotSpotDetect
- return gHotSpotDetect
- end
-
- on initHotSpotCastNumbers
- global hotSpotList, hotSpotCastListA, hotSpotCastListB
- set hotSpotCastListA to []
- set hotSpotCastListB to []
- repeat with i = 1 to count(hotSpotList)
- set root to string(getPropAt(hotSpotList, i))
- set cNum to the number of cast (root & "_B1")
- add(hotSpotCastListA, cNum)
- set cNum to the number of cast (root & "_B2")
- add(hotSpotCastListB, cNum)
- end repeat
- end
-